﻿// -----------------------------------------------------------------------
// <copyright file="CriarContaModel.cs" company="Storytelling">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------
namespace Storytelling.Modelos
{
    using Storytelling.Entidades;
    using System.ComponentModel.DataAnnotations;

    public class CriarContaModel
    {
        [Required]
        [Display(Name = "Nome")]
        public virtual string Nome { get; set; }

        [Required]
        [Display(Name = "Login")]
        [StringLength(20, MinimumLength = 5)]
        public virtual string Login { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        [Display(Name = "Endereço de Email")]
        [StringLength(40, MinimumLength = 5)]
        public virtual string Email  { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "Senha")]
        [StringLength(20, MinimumLength = 6)]
        public virtual string Senha { get; set; }

        [Display(Name = "Sou narrador")]
        public virtual bool Narrador { get; set; }
    }
}
